/*
 * Reciept.cpp
 *
 *  Created on: Jul 26, 2013
 *      Author: Dan
 */

#include "Reciept.h"

namespace sm {

Reciept::Reciept(bool aSuccess) {
	theChildren = new std::list<XMLTree*>;
	if (aSuccess == true) {
		XMLTree* t = new XMLTree("true");
		theChildren->push_back(t);
	} else {
		XMLTree* t = new XMLTree("false");
		theChildren->push_back(t);
	}
	std::vector<std::string> empty;
	theNode = new monkeyXML::XMLTag("Reciept", empty, empty);
	isText = false;
	isClosingTag = false;
}

Reciept::Reciept(const std::string& aMessage) {
	theChildren = new std::list<XMLTree*>;
	XMLTree* t = new XMLTree(aMessage);
	theChildren->push_back(t);
	std::vector<std::string> empty;
	theNode = new monkeyXML::XMLTag("Reciept", empty, empty);
	isText = false;
	isClosingTag = false;
}

Reciept::Reciept() {
}

Reciept::~Reciept() {

}

} /* namespace sm */
